package com.atguigu.gmall.feign.ware.fallback;

import com.atguigu.gmall.feign.ware.WareFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author lfy
 * @Description
 * @create 2022-10-21 13:59
 */
@Component
@Slf4j
public class WareFeignClientFallBack implements WareFeignClient {
    @Override
    public String hasStock(Long skuId, Integer num) {
        log.info("触发容错兜底");
        return "1";
    }
}
